From: Ken Raeburn Date: Sun, 21 Jul 2002 14:11:55 +0000 (+0000) Subject: comment last change X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~56038 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6bcdeb8c243c2b9de61f5d03a5a9928d8e2d1749;p=emacs.git comment last change --- diff --git a/src/buffer.c b/src/buffer.c index bf1b49e6ff4..fd2de4a2408 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4669,7 +4669,11 @@ mmap_realloc (var, nbytes) else if (room - nbytes >= mmap_page_size) { /* Shrinking by at least a page. Let's give some - memory back to the system. */ + memory back to the system. + + The extra parens are to make the division happens first, + on positive values, so we know it will round towards + zero. */ mmap_enlarge (r, - ((room - nbytes) / mmap_page_size)); result = *var; r->nbytes_specified = nbytes;